@{block #content}
<script type="text/javascript" src="{$basePath}/systemApps/celebrioapplication/js/application.js"></script>
<h1>Aplikace</h1>
{snippet table}
<h2>Installed applications</h2>
<table>
    <tr>
        <th>Name</th>
        <th>Description</th>
        <th>Publisher</th>
        <th>Uninstall</th>
    </tr>
    {foreach $installed as $app}
    <tr>
        <td>{$app->name}</td>
        <td>{$app->altText}</td>
        <td>{$app->publisher}</td>
        <td><a href="{link uninstall, id => $app->id}" class="ajax">X</a></td>
    </tr>
    {/foreach}
</table>
<h2>Available applications</h2>
<table>        
    <tr>
        <th>Name</th>
        <th>Description</th>
        <th>Publisher</th>
        <th>Install</th>
    </tr>
    {foreach $notinstalled as $app}
    <tr>
        <td>{$app->name}</td>
        <td>{$app->altText}</td>
        <td>{$app->publisher}</td>
        <td><a href="{link install, id => $app->id}" class="ajax">X</a></td>
    </tr>
    {/foreach}
</table>
{/snippet}
{/block}